home *** CD-ROM | disk | FTP | other *** search
- Path: news.london.sinet.slb.com!news
- From: Laurent Darton <darton@macon.wm.slb.com>
- Newsgroups: comp.lang.c
- Subject: Link pb with visual and Flex
- Date: Wed, 17 Apr 1996 19:26:25 -0700
- Organization: Schlumberger SINet, London, England
- Message-ID: <3175A851.B17@macon.wm.slb.com>
- NNTP-Posting-Host: macon14.macon.wm.slb.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Hi,
- I've made a scanner with flex (in C), and I'd like to integrate this
- function inside a C++ Dos program.
- Then for example I have main.cpp and lexyy.c. I want to use the function
- int analyse(void) defined in lexyy.c
- there are no errors during compiling, but at the link, the function is
- declared as unresolved external.. I suppose the problem can be solve with
- a link option but I don't know..
- remark : when I use the browser, and when I 'm looking for the definition
- of analyse function, here is what I have :
- analyse(function) here is my definition ... well
- AND
- analyse() With ref ok but no for definition..
- Why 2 functions are declared?? and no only one..
- I sppose it's a problem netween C and C++ but I'm a bit lost..
- anybody can help me?
- thanks in advance
-